<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
	<link rel="stylesheet" href="${staticServer}/inc/style/main.css"/>
<link rel="stylesheet" href="${staticServer}/inc/style/page.css" />
<link rel="stylesheet" href="${staticServer}/inc/style/date/datepicker.css"/>
<link rel="stylesheet" href="${staticServer}/css/consultant_client.css" />
<link rel="stylesheet" href="${staticServer}/css/consultant_client_reserve_form.css" />
	<script src="${staticServer}/inc/js/jquery.js"></script>

	<script src="${staticServer}/inc/js/core/page_core.js"></script>
	<script src="${staticServer}/inc/js/core/utils.js"></script>
	<script src="${staticServer}/inc/js/pageset.js"></script>
	<script src="${staticServer}/inc/js/model_resp.js"></script>
	<script src="${staticServer}/inc/js/submitter.js"></script>
	<script src="${staticServer}/inc/js/datepicker.js"></script>
	<script src="${staticServer}/inc/js/model_win.js"></script>
	<script src="${staticServer}/inc/js/htmlfilter.js"></script>
	<script type="text/javascript" src="${staticServer}/common/uploadify/jquery.uploadify.js"></script>
	<script type="text/javascript" src="${staticServer}/js/web/uploadImg.js?1.5"></script>
	
	<script src="${staticServer}/inc/js/consultants/ClientData.js"></script>
	<script src="${staticServer}/inc/js/consultants/ClientReserve.js?2.0"></script>
	<script src="${staticServer}/inc/js/consultants/ClientReception.js?2.3"></script>
	<script src="${staticServer}/inc/js/consultants/consultant_client_quest.js?2.0"></script>
	<script src="${staticServer}/inc/js/consultants/consultant_client_reception_d.js?2.0"></script>
	<script src="${staticServer}/js/web/system_reception_view.js?2.1"></script>
<style>
#SWFUpload_0{
	margin-top: 70px;
    margin-left: -30px;
}
#SWFUpload_1{
	margin-top: 70px;
    margin-left: -30px;
}
#SWFUpload_2{
	margin-top: 70px;
    margin-left: -30px;
}
.uploadify-button-text{
	margin-left: 60px;
	margin-top: 70px;
}

</style>
<script>
var contextPath='${contextPath}';
var _contextPath = '${staticServer}';

$(function(){
	$("#worth").val(${res.worth});
	//worth("${res.worth}");
});


/**
function worth(worth){
	var htm = "";
	var html = "";
	$("#req_money").html(" ");
	$("#pre_times").hide();
	$("#req_money2").html(" ");
	$("#pre_times2").hide();
	$("#form_button").hide();
	$("#req_ear").html(" ");
	$("[name=nest]:checkbox").prop("checked", false);
	$("#earnests").hide();
	
	var mo = "${res.money}";
	var time = "${res.rep_time}";
	var nest = "${res.earnest}"
	$("#img1").hide();
	$("#img2").hide();
	$("#img3").hide();
   if(worth==6){
		htm += '缴费类型：<select id="moneyType"><option value="">请选择缴费类型</option><#if mList??><#list mList as list><option <#if res.moneyType==list.id> selected="selected" </#if> value="${list.id}">${list.name}</option></#list></#if></select><span class="moneyid" style="display:inherit;padding-left:15px;">'+
	 		 '成交金额是:<input name="money" id="money" value="${res.money}" rel="st_money" value="" placeholder="填写金额" size="20" maxlength="15" <#if  webutil.getCookieUser().username?? && webutil.getCookieUser().username='system'><#elseif res.money!='' && res.money!=null>disabled="true"</#if> />元'+
			 '</span>';
		html += '<span class="moneyid1" style="display:inherit;padding-left:15px;margin-left:104px;">'+
	 		 '<br/>缴费类型：<select id="moneyType1"><option value="">请选择缴费类型</option><#if mList??><#list mList as list><option <#if res.moneyType1==list.id> selected="selected" </#if> value="${list.id}">${list.name}</option></#list></#if></select>&nbsp;&nbsp;&nbsp;成交金额是:<input name="money1" id="money1" value="${res.money1}" rel="st_money" value="" placeholder="填写金额" size="20" maxlength="15" <#if  webutil.getCookieUser().username?? && webutil.getCookieUser().username='system'><#elseif res.money1!='' && res.money1!=null>disabled="true"</#if> />元'+
			 '</span>';
			 
		$("#pre_times").show();
		$("#req_money").append(htm);
		$("#form_button").show();
		
		$("#img2").show();
		$("#img3").show();
		if(mo!=""){
			$("#req_money2").append(html);
			$("#pre_times2").show();
		}
	}
	if(nest!=""){
		$("[name=nest]:checkbox").prop("checked", true);
	}
	if(worth==5){
		$("#earnests").show();
		$("#img1").show();
		nests();
	}
}
**/

function nests(){
	 if($("#nest").prop("checked")){
	 	var htm = "";
		$("#req_ear").html(" ");
				htm += '<span class="nestid" style="display:inherit;padding-left:15px;">'+
		 		 '缴费类型：<select id="earnestType"><option value="">请选择缴费类型</option><#if mList??><#list mList as list><option <#if res.earnestType==list.id> selected="selected" </#if> value="${list.id}">${list.name}</option></#list></#if></select>&nbsp;&nbsp;&nbsp;定金金额是:<input name="nestid" id="nestid" rel="st_nest" value="${res.earnest}" placeholder="填写金额" <#if  webutil.getCookieUser().username?? && webutil.getCookieUser().username='system'><#elseif res.earnest!='' && res.earnest!=null>disabled="true"</#if> size="20" maxlength="15" />元'+
				 '</span>'+
				 '<span id="req_ears" style="display:inherit;padding-left:15px;">定金时间:<input title="" style="margin-right:10px;" type="text" <#if  webutil.getCookieUser().username?? && webutil.getCookieUser().username='system'><#elseif res.earnest!='' && res.earnest!=null>disabled="true"</#if> id="nest_date" value="${res.ear_time}" size="15" maxlength="15" rel="DATE::Y-m-d" readonly="readonly">'+
				 '<br/>缴费备注<input style="width: 439px;" type="text" value="${res.beizhu}" id="beizhu"></span>'+
				 '<input type="button" onclick="worth_form()" class="submit" value="保存成交数据"/>';
			$("#req_ear").append(htm);
			$("#nest_date").Zebra_DatePicker({ format: 'Y-m-d', show_icon: false} );
		}else{
			$("#req_ear").html(" ");
		}
}
</script>
<style type="text/css">

</style>
</head>

<body>
	<div id="home_link">
		<ul>
			<li></li>
			<li>&gt;</li>
			<li>咨询师</li>
			<li>&gt;</li>
			<li class="current"></li>
		</ul>
	</div>
	<div id="caption">
		<ul>
			<li><span class="title">操作提示：</span></li>
			<li>Ctrl+Enter 提交</li>
		</ul>
	</div>
	<div id="container">
		<input type="hidden" id="key" value="${res.keyname}">
		<input type="hidden" id="clientkey" value="${res.client}">
		<div id="title"></div>
		<table id="tbl_client">
			<tbody><tr rel="title" class="fields" style="cursor: pointer;">
				<th colspan="2">客户资料</th>
			</tr>
			<tr>
				<th width="25%">客户姓名/称呼</th>
				<td width="75%"><span id="nickname" name="${res.nickname}" class="stress unit hand">${res.nickname}<#if res.invalid=="0"><em class="valid">(有效客户)<#else><em class="caption">(无效客户)</#if></em></span></td>
			</tr>
				<tr rel="hide" class="odd_row" style="display: none;">
				<th >客户来源渠道</th>
				<td id="source">${res.sourcens}</td></tr>
				<tr rel="hide" class="even_row" style="display: none;">
				<th>关键字</th>
				<td id="keyword">${res.keyword}</td></tr>
				<tr rel="hide" class="odd_row" style="display: none;">
				<th>客户类别</th>
				<td id="category">${res.categoryns}</td></tr>
				<tr class="odd_row">
				<th>所在地</th>
				<td id="address">${res.province}-${res.city}</td></tr>
				<tr class="even_row">
				<th>联系电话</th>
				<td id="phone">
					<#if res.phlist??>
					<#list res.phlist as phlist>
						<#if phlist.name!=''>
						${phlist.name}：${phlist.phone}
						<#elseif phlist.guanxi!=''>
						${phlist.guanxi}：${phlist.phone}
						<#else>
						${phlist.phone}
						</#if>
					</#list>
					<#elseif res.phone!="" && res.phone?contains('[]')==false>
     						${res.phone}
					</#if>				
				</td></tr>
				<tr rel="hide" class="odd_row" style="display: none;">
				<th>电子邮箱</th><td id="email">${res.email}</td></tr>
				<tr rel="hide" class="even_row" style="display: none;">
				<th>QQ</th><td id="qq">${res.qq}</td></tr>
				<tr rel="hide" class="odd_row" style="display: none;">
				<th>IP地址</th><td id="ip">${res.ip}</td></tr>
				</tbody></table>

		<table id="tbl_reception">
		<tbody>
			<tr  rel="title" class="fields" style="cursor: pointer;">
				<th colspan="2">客户接待表单</th>
			</tr>
			
			<tr >
				<th width="25%">接待日期</th>
				<td width="75%">
					<input title="" type="text" id="rep_date" value="${res.gtime}" size="15" maxlength="15" rel="DATE::Y-m-d"/>
					<em class="caption">（默认为今日日期）</em>
				</td>
			</tr>
			<tr >
				<th width="25%">接待老师<p class="caption">请选择与预约时相同的接待老师名字</p></th>
				<td width="75%" id="rep_user_box"><span class="stress unit hand" id="user">${res.receptionns}</span>
				</td>
			</tr>
			
			<tr >
				<th width="25%">实际测评中心地址</th>
				<td width="75%" id="rep_region_box"> <span class="stress unit hand" id="region" value="${res.region}">${res.regionns}</span></td>
			</tr>
			
			<tr>
				<th width="25%">继续跟踪价值</th>
				<td width="75%" id="rep_worth_box">
				<select id="worth" onchange="worth(this.value)">
				<option value="0">-- 请选择 --</option>
	 				<option value="1">保持客情</option>
					<option value="2">保持长期跟踪</option>
					<option value="3">计划跟踪回访</option>
					<option value="4">短期跟踪回访</option>
					<option value="5">必须跟踪争取</option>
					<option value="6">已成交</option>
				</select>
				<span id="req_money"></span>
				<span id="pre_times" style="display:none;padding-left:15px;">
	 		 		成交时间:<input title="" type="text" id="rep_date1" value="${res.rep_time}" size="15" maxlength="15" rel="DATE::Y-m-d" readonly="readonly" class="DatePicker_Icon" <#if  webutil.getCookieUser().username?? && webutil.getCookieUser().username='system'><#elseif res.rep_time!='' && res.rep_time!=null>disabled="true"</#if> >
			 	</span>
			 	<span id="req_money2"></span>
			 	<span id="pre_times2" style="display:none;padding-left:15px;">
	 		 	 	成交时间:<input title="" type="text" id="rep_date2" value="${res.rep_time1}" size="15" maxlength="15" rel="DATE::Y-m-d" readonly="readonly" class="DatePicker_Icon" <#if  webutil.getCookieUser().username?? && webutil.getCookieUser().username='system'><#elseif res.rep_time1!='' && res.rep_time1!=null>disabled="true"</#if> >
			 	</span>
			 	<span id="earnests" style="display:none;padding-left:15px;"><br/><input name="nest" id="nest" onclick="nests()" type="checkbox"  value=""  <#if  webutil.getCookieUser().username?? && webutil.getCookieUser().username='system'><#elseif res.ear_time!='' && res.ear_time!=null>disabled="true" checked=checked</#if> <#if res.earnest!=null && res.earnest!="">checked=checked</#if> />定金</span>
				<span id="req_ear"></span>
			 	<span id="form_button" style="display:none;padding-left:15px;">
			 	<br/>缴费备注:<input style="width: 439px;" id="beizhu" value="${res.beizhu}">
			 			<input type="button" onclick="worth_form()" class="submit" value="保存"/>
			 	</span>
				</td>
			</tr>
			
			<tr id="pingzheng">
				<th width="25%">上传凭证</th>
			
				<td width="99%" id="img1" style="display:block;height:240px;">
					定金凭证：
					<ul class="imglist">
						<div id="images">
						<#if res.pz_url1?? && res.pz_url1!="">
						<#list res.pz_url1?split(",") as name>
							<#if name_index !=0>
								<li style="line-height:180px;*font-size:157px;"><img rel="800:485" width="180" height="109.125" src="http://www.yueqiao.org${name}"></li>
							</#if>
						</#list>
						</#if>
						</div>
						
						<a class="file_box" style="display: block; width:180px; height:180px; overflow: hidden; border: 1px solid #EBEBEB; background: none repeat scroll 0 0 #F3F3F3; color: #999999; cursor: pointer; text-align: center; margin-top:20px; margin-left:10px; ">
                        <em style="background:url(${staticServer}/img/add_newpic.png) 0 0; display: inline-block; width:180px; height:180px; overflow: hidden;line-height: 20em; vertical-align: middle;">
                        <input type="file" id="upload" style="display: block;width:180px; height:180px;opacity: 0; filter:alpha(opacity=0); "></em>
                        </a>
                    	<label class="zt_widthlabel" style=" font-size:9px; float:left; visibility:hidden;">文件：</label>
                        <input type="text" id="all_words" value="${res.pz_url1}" style=" width:100px; height:10px; float:left;visibility:hidden;" class="input w180" value="">
				
					</ul>
				</td>
				
				
				<td width="99%" id="img2" style="display:block;height:240px;">
					 已成交、交款1凭证：
					<ul class="imglist">
						<div id="images2">
						<#if res.pz_url2?? && res.pz_url2!="">
						<#list res.pz_url2?split(",") as name>
							<#if name_index !=0>
							<li style="line-height:180px;*font-size:157px;"><img rel="800:485" width="180" height="109.125" src="http://www.yueqiao.org${name}"></li>
							</#if>
						</#list>
						</#if>
						</div>
						
						<a class="file_box" style="display: block; width:180px; height:180px; overflow: hidden; border: 1px solid #EBEBEB; background: none repeat scroll 0 0 #F3F3F3; color: #999999; cursor: pointer; text-align: center; margin-top:20px; margin-left:10px; ">
                        <em style="background:url(${staticServer}/img/add_newpic.png) 0 0; display: inline-block; width:180px; height:180px; overflow: hidden;line-height: 20em; vertical-align: middle;">
                        <input type="file" id="upload2" style="display: block;width:180px; height:180px;opacity: 0; filter:alpha(opacity=0); "></em>
                        </a>
                    	<label class="zt_widthlabel" style=" font-size:9px; float:left; visibility:hidden;">文件：</label>
                        <input type="text" id="all_words2" value="${res.pz_url2}" style=" width:100px; height:10px; float:left;visibility:hidden;" class="input w180" value="">
				
					</ul>
				</td>
				
				
				<td width="99%" id="img3" style="display:block;height:240px;">
					已成交、交款2凭证：
					<ul class="imglist">
						<div id="images3">
						<#if res.pz_url3?? && res.pz_url3!="">
						<#list res.pz_url3?split(",") as name>
							<#if name_index !=0>
							<li style="line-height:180px;*font-size:157px;"><img rel="800:485" width="180" height="109.125" src="http://www.yueqiao.org${name}"></li>
							</#if>
						</#list>
						</#if>
						</div>
						
						<a class="file_box" style="display: block; width:180px; height:180px; overflow: hidden; border: 1px solid #EBEBEB; background: none repeat scroll 0 0 #F3F3F3; color: #999999; cursor: pointer; text-align: center; margin-top:20px; margin-left:10px; ">
                        <em style="background:url(${staticServer}/img/add_newpic.png) 0 0; display: inline-block; width:180px; height:180px; overflow: hidden;line-height: 20em; vertical-align: middle;">
                        <input type="file" id="upload3" style="display: block;width:180px; height:180px;opacity: 0; filter:alpha(opacity=0); "></em>
                        </a>
                    	<label class="zt_widthlabel" style=" font-size:9px; float:left; visibility:hidden;">文件：</label>
                        <input type="text" id="all_words3" value="${res.pz_url3}" style=" width:100px; height:10px; float:left;visibility:hidden;" class="input w180" value="">
				
					</ul>
				</td>
				
				
			</tr>

			<tr>
				<th width="25%">来人特征或备注</th>
				<td width="75%">
					<textarea title="" id="rep_feature" style="width:95%;">${res.feature}</textarea>
					<p class="line"></p>
					<p class="caption">接待时，来人或者客户本人的特征等情况，以及非预约接待等相关情况记录</p>
				</td>
			</tr>

			<tr >
				<th width="25%">追加跟踪记录</th>
				<td width="75%">
					<a id="btnAddTracking">[ 添加客户跟踪记录 ]</a>
					<p class="caption">为此次接待，增加必要的客户跟踪记录</p>
				</td>
			</tr>

			<tr>
				<th width="25%">目标学员<p class="caption">勾选指定的学员，填写测评记录数据</p></th>
				<td width="75%">
					<div id="rep_student_box" style="overflow:hidden;">
					<ul id="rep_student">
					<#if stuList??>
					<#list stuList as stulist>
					<li rel="${stulist.keyname}" onclick="check(${stulist.id})" id="${stulist.id}"  class="stress rect" style="list-style:none;float:left;width:200px;margin:2px;">
					<label><input type="checkbox" checked id="${stulist.keyname}" rel="${stulist.keyname}">
					<span>${stulist.nickname}  ，${stulist.sex} ， ${stulist.age} 岁</span>
					</label>
					</li>
					</#list>
					</#if>
					</ul>
					</div>
					<p class="line"></p>
					<p class="caption">
						此次接待所涉及的学员目标，勾选指定的学员，在下方弹出测评表单填写测评记录数据<br>
						只有指定目标学员才计算绩效。测评类型接待必须指定，上门接待也可设置目标学员测评情况。
					</p>
				</td>
			</tr>
		 </tbody>
		</table>

		<!-- 学员测评表 -->
		<div id="student_test_recycle"></div>
		<div id="student_test_list" style="display: block;">
		
		<#if stuList??>
		<#list stuList as stulist>
	
		<#if stulist.smlist??>
		<#list stulist.smlist as ms>
		<#assign price = "${ms.price}">
		<#assign testuser = "${ms.testuser}">
		<#assign moneylog = "${ms.moneylog}">
		<#assign reason = "${ms.reason}">
		<#assign remark = "${ms.remark}">
		<#assign result = "${ms.result}">
				
		<table id="${stulist.keyname}" style="display:table;" rel="${stulist.keyname}">
		  	<tr class="fields">
				<th colspan="2">学员 [&nbsp ${stulist.nickname} &nbsp] 的测评情况</th>
			</tr>
			<tr>
			<th width="25%">基本资料</th>
			<td width="75%">
						<span class="rect stress" rel="student_info">${stulist.nickname} ，${stulist.sex}， ${stulist.age} 岁</span>
						<a rel="${stulist.keyname}" id="btnStudent" class="submit" title="点击编辑学员资料、特征、训练类型、学员卡、课时数、仪器编号">[ 编辑学员资料 ]</a>
						<p class="line"></p>
						<p class="caption">学员资料包括<span class="quote">基本资料、学员特征、训练类型、学员卡、课时数、仪器编号</span>等
						</p>
				</td>
			</tr>	
			
			<tr>
				<th width="25%">测评老师</th>
				<td width="75%" id="testuser">
				<select id="testusers" class="${stulist.keyname}" name="${testuser}" rel="testuser">
				</select>
				</td>
			</tr>
			
			<tr>
				<th width="25%"><label for="price">学费报价情况</label></th>
				<td width="75%">
					<textarea id="price" rows="1" style="width:95%;">${price}</textarea>
					<p class="line"></p>
					<p class="caption">学费报价、对应课时数量等情况记录</p></td>
			</tr>
			<tr>
				<th width="25%"><label for="moneylog">实际缴费情况</label></th>
				<td width="75%">
					<textarea id="moneylog" rows="1" style="width:95%;">${moneylog}</textarea>
					<p class="line"></p>
					<p class="caption">记录实际缴费金额，包括定金，余款等等。例如：9.1定金 1000,9.10 余款 21000</p></td>
			</tr>

			<tr>
				<th width="25%"><label class="${result}" for="reason">未成交原因</label></th>
				<td width="75%">
					<textarea id="reason" rows="3" style="width:95%;">${reason}</textarea>
					<p class="line"></p>
					<p class="caption">如“未做成原因、情况等”</p></td>
			</tr>
			<tr>
				<th width="25%"><label for="remark">其它备注情况</label></th>
				<td width="75%">
					<textarea id="remark" rows="3" style="width:95%;">${remark}</textarea>
					<p class="line"></p>
					<p class="caption">如“做成后的反复、纠缠程度等”</p></td>
			</tr>
			
			<tr>
				<th width="25%">测评完成项目调查<a rel="btnArrow" class="arrow" title="展开/隐藏调查表"></a></th>
				<td width="75%" rel="result"><a rel="btnShowVote" class="submit" style="display:none;">[ 展开调查表 ]</a>
					<div id="" style="display:block;">
					<p>1、孩子是否喜欢培训老师</p>
					<p rel="TR_1">
					<span class="rect">
					<input type="radio" <#if (result?split(","))[0] == 1>checked</#if> name="TR_1_${stulist_index}" id="TR_1_1_${stulist_index}" value="1">
					<label for="TR_1_1_${stulist_index}" class="hand" style="padding:0 20px 0 0;">是</label></span>
					<span class="rect" style="margin-left:50px;">
					<input type="radio"  <#if (result?split(","))[0] == 2>checked</#if> name="TR_1_${stulist_index}" id="TR_1_2_${stulist_index}" value="2">
					<label for="TR_1_2_${stulist_index}" class="hand" style="padding:0 20px 0 0;">否</label></span></p>
					<p class="line"></p><p>2、软件测评出生年月日是否准确</p>
					
					<p rel="TR_2">
					<span class="rect">
					<input type="radio" <#if (result?split(","))[1] == 1>checked</#if> name="TR_2_${stulist_index}" id="TR_2_1_${stulist_index}" value="1">
					<label for="TR_2_1_${stulist_index}" class="hand" style="padding:0 20px 0 0;">是</label></span>
					<span class="rect" style="margin-left:50px;">
					<input type="radio"  <#if (result?split(","))[1] == 2>checked</#if> name="TR_2_${stulist_index}" id="TR_2_2_${stulist_index}" value="2">
					<label for="TR_2_2_${stulist_index}" class="hand" style="padding:0 20px 0 0;">否</label></span></p>
					<p class="line"></p>
					<p>3、测评老师是否做了记录，并向咨询老师介绍了孩子详细的情况</p>
					
					<p rel="TR_3">
					<span class="rect">
					<input type="radio" <#if (result?split(","))[2] == 1>checked</#if> name="TR_3_${stulist_index}" id="TR_3_1_${stulist_index}" value="1">
					<label for="TR_3_1_${stulist_index}" class="hand" style="padding:0 20px 0 0;">是</label></span>
					<span class="rect" style="margin-left:50px;">
					<input type="radio" <#if (result?split(","))[2] == 2>checked</#if> name="TR_3_${stulist_index}" id="TR_3_2_${stulist_index}" value="2">
					<label for="TR_3_2_${stulist_index}" class="hand" style="padding:0 20px 0 0;">否</label></span></p>
					<p class="line"></p><p>4、咨询过程中，孩子是否没管住跑到咨询室了</p>
					
					<p rel="TR_4">
					<span class="rect">
					<input type="radio" <#if (result?split(","))[3] == 1>checked</#if> name="TR_4_${stulist_index}" id="TR_4_1_${stulist_index}" value="1">
					<label for="TR_4_1_${stulist_index}" class="hand" style="padding:0 20px 0 0;">是</label></span>
					<span class="rect" style="margin-left:50px;">
					<input type="radio"  <#if (result?split(","))[3] == 2>checked</#if> name="TR_4_${stulist_index}" id="TR_4_2_${stulist_index}" value="2">
					<label for="TR_4_2_${stulist_index}" class="hand" style="padding:0 20px 0 0;">否</label></span></p>
					<p class="line"></p>
					<p>5、是否和家长产生争执</p>
					
					<p rel="TR_5">
					<span class="rect">
					<input type="radio" <#if (result?split(","))[4]?split(":")[0] == 1>checked</#if> name="TR_5_${stulist_index}" id="TR_5_1_${stulist_index}" value="1">
					<label for="TR_5_1_${stulist_index}" class="hand" style="padding:0 20px 0 0;">是</label></span>
					<span class="rect" style="margin-left:50px;">
					<input type="radio" <#if (result?split(","))[4]?split(":")[0] == 2>checked</#if> name="TR_5_${stulist_index}" id="TR_5_2_${stulist_index}" value="2">
					<label for="TR_5_2_${stulist_index}" class="hand" style="padding:0 20px 0 0;">否</label></span>
					<span style="margin-left:50px;">
					<label for="TXT_5" class="stress">争执原因：</label>
					<input type="text" name="TXT_5" size="30" value="${(result?split(","))[4]?split(":")[1]}"></span></p>
					<p class="line"></p><p>6、是否完成全部测评（备注原因）</p>
					
					<p rel="TR_6">
					<span class="rect">
					<input type="radio" <#if (result?split(","))[5]?split(":")[0] == 1>checked</#if> name="TR_6_${stulist_index}" id="TR_6_1_${stulist_index}" value="1">
					<label for="TR_6_1_${stulist_index}" class="hand" style="padding:0 20px 0 0;">是</label></span>
					<span class="rect" style="margin-left:50px;">
					<input type="radio" <#if (result?split(","))[5]?split(":")[0] == 2>checked</#if> name="TR_6_${stulist_index}" id="TR_6_2_${stulist_index}" value="2">
					<label for="TR_6_2_${stulist_index}" class="hand" style="padding:0 20px 0 0;">否</label></span>
					<span style="margin-left:50px;">
					<label for="TXT_6" class="stress">未完成原因：</label>
					<input type="text" name="TXT_6" size="30" value="${(result?split(","))[5]?split(":")[1]}"></span></p>
					<p class="line"></p><p>7、脑电数据是否有较大错误（如太低或太高）</p>
					
					<p rel="TR_7">
					<span class="rect">
					<input type="radio" <#if (result?split(","))[6]?split(":")[0] == 1>checked</#if> name="TR_7_${stulist_index}" id="TR_7_1_${stulist_index}" value="1">
					<label for="TR_7_1_${stulist_index}" class="hand" style="padding:0 20px 0 0;">是</label></span>
					<span class="rect" style="margin-left:50px;">
					<input type="radio" <#if (result?split(","))[6]?split(":")[0] == 2>checked</#if> name="TR_7_${stulist_index}" id="TR_7_2_${stulist_index}" value="2">
					<label for="TR_7_2_${stulist_index}" class="hand" style="padding:0 20px 0 0;">否</label></span>
					<span style="margin-left:50px;"><label for="TXT_7" class="stress">错误描述：</label>
					<input type="text" name="TXT_7" size="30" value="${(result?split(","))[6]?split(":")[1]}"></span></p>
					<p class="line"></p></div>
				</td>
			</tr>
		</table>
		</#list>
		</#if>
		</#list>
		</#if>
		</div>

		<!-- 学员接待测评情况表模板 -->
		<table id="tbl_student_temp">
			<tr class="fields">
				<th colspan="2">学员情况</th>
			</tr>
				<tr>
					<th width="25%">基本资料</th>
					<td width="75%">
						<span class="rect stress" rel="student_info">XXX，男，8 岁</span>
						<a rel="" id="btnStudent" class="submit" title="点击编辑学员资料、特征、训练类型、学员卡、课时数、仪器编号">[ 编辑学员资料 ]</a>
						<p class="line"></p>
						<p class="caption">
							学员资料包括<span class="quote">基本资料、学员特征、训练类型、学员卡、课时数、仪器编号</span>等
						</p>
					</td>
				</tr>
			<tr>
				<th width="25%">测评老师</th>
				<td width="75%" id="testuser" rel="testuser"></td>
			</tr>

			<tr>
				<th width="25%"><label for="price">学费报价情况</label></th>
				<td width="75%">
					<textarea id="price" rows="1" style="width:95%;"></textarea>
					<p class="line"></p>
					<p class="caption">学费报价、对应课时数量等情况记录</p></td>
			</tr>
			<tr>
				<th width="25%"><label for="moneylog">实际缴费情况</label></th>
				<td width="75%">
					<textarea id="moneylog" rows="1" style="width:95%;"></textarea>
					<p class="line"></p>
					<p class="caption">记录实际缴费金额，包括定金，余款等等。例如：9.1定金 1000,9.10 余款 21000</p></td>
			</tr>

			<tr>
				<th width="25%"><label for="reason">未成交原因</label></th>
				<td width="75%">
					<textarea id="reason" rows="1" style="width:95%;"></textarea>
					<p class="line"></p>
					<p class="caption">如“未做成原因、情况等”</p></td>
			</tr>
			<tr>
				<th width="25%"><label for="remark">其它备注情况</label></th>
				<td width="75%">
					<textarea id="remark" rows="1" style="width:95%;"></textarea>
					<p class="line"></p>
					<p class="caption">如“做成后的反复、纠缠程度等”</p></td>
			</tr>

			<tr>
				<th width="25%">测评完成项目调查<a rel="btnArrow" class="arrow" title="展开/隐藏调查表"></a></th>
				<td width="75%" rel="result"><a rel="btnShowVote" class="submit" style="display:block;">[ 展开调查表 ]</a>
					<div id="" style="display:none;"><p>1、孩子是否喜欢培训老师</p><p rel="TR_1"><span class="rect"><input type="radio" name="TR_1" id="TR_1_1" value="1"><label for="TR_1_1" class="hand" style="padding:0 20px 0 0;">是</label></span><span class="rect" style="margin-left:50px;"><input type="radio" name="TR_1" id="TR_1_2" value="2"><label for="TR_1_2" class="hand" style="padding:0 20px 0 0;">否</label></span></p><p class="line"></p><p>2、软件测评出生年月日是否准确</p><p rel="TR_2"><span class="rect"><input type="radio" name="TR_2" id="TR_2_1" value="1"><label for="TR_2_1" class="hand" style="padding:0 20px 0 0;">是</label></span><span class="rect" style="margin-left:50px;"><input type="radio" name="TR_2" id="TR_2_2" value="2"><label for="TR_2_2" class="hand" style="padding:0 20px 0 0;">否</label></span></p><p class="line"></p><p>3、测评老师是否做了记录，并向咨询老师介绍了孩子详细的情况</p><p rel="TR_3"><span class="rect"><input type="radio" name="TR_3" id="TR_3_1" value="1"><label for="TR_3_1" class="hand" style="padding:0 20px 0 0;">是</label></span><span class="rect" style="margin-left:50px;"><input type="radio" name="TR_3" id="TR_3_2" value="2"><label for="TR_3_2" class="hand" style="padding:0 20px 0 0;">否</label></span></p><p class="line"></p><p>4、咨询过程中，孩子是否没管住跑到咨询室了</p><p rel="TR_4"><span class="rect"><input type="radio" name="TR_4" id="TR_4_1" value="1"><label for="TR_4_1" class="hand" style="padding:0 20px 0 0;">是</label></span><span class="rect" style="margin-left:50px;"><input type="radio" name="TR_4" id="TR_4_2" value="2"><label for="TR_4_2" class="hand" style="padding:0 20px 0 0;">否</label></span></p><p class="line"></p><p>5、是否和家长产生争执</p><p rel="TR_5"><span class="rect"><input type="radio" name="TR_5" id="TR_5_1" value="1"><label for="TR_5_1" class="hand" style="padding:0 20px 0 0;">是</label></span><span class="rect" style="margin-left:50px;"><input type="radio" name="TR_5" id="TR_5_2" value="2"><label for="TR_5_2" class="hand" style="padding:0 20px 0 0;">否</label></span><span style="margin-left:50px;"><label for="TXT_5" class="stress">争执原因：</label><input type="text" name="TXT_5" size="30"></span></p><p class="line"></p><p>6、是否完成全部测评（备注原因）</p><p rel="TR_6"><span class="rect"><input type="radio" name="TR_6" id="TR_6_1" value="1"><label for="TR_6_1" class="hand" style="padding:0 20px 0 0;">是</label></span><span class="rect" style="margin-left:50px;"><input type="radio" name="TR_6" id="TR_6_2" value="2"><label for="TR_6_2" class="hand" style="padding:0 20px 0 0;">否</label></span><span style="margin-left:50px;"><label for="TXT_6" class="stress">未完成原因：</label><input type="text" name="TXT_6" size="30"></span></p><p class="line"></p><p>7、脑电数据是否有较大错误（如太低或太高）</p><p rel="TR_7"><span class="rect"><input type="radio" name="TR_7" id="TR_7_1" value="1"><label for="TR_7_1" class="hand" style="padding:0 20px 0 0;">是</label></span><span class="rect" style="margin-left:50px;"><input type="radio" name="TR_7" id="TR_7_2" value="2"><label for="TR_7_2" class="hand" style="padding:0 20px 0 0;">否</label></span><span style="margin-left:50px;"><label for="TXT_7" class="stress">错误描述：</label><input type="text" name="TXT_7" size="30"></span></p><p class="line"></p></div>
				</td>
			</tr>
		</table>

		<div class="remark">
			<ul>
				<li><span class="title">注意事项：</span></li>
				<li>1、客户接待时，可以同时填写测评数据和学员特征等数据</li>
				<li>2、学员数据之后需要通过“完善学员资料、学员查询”入口单独维护</li>
				<li>3、未被勾选的“学员目标”的测评数据，将不会予以保存</li>
			</ul>
		</div>
		<div id="controlbar">
			<input type="button" onclick="submit_form()" class="submit" value="  保存接待数据  "/>
			<input id="btnCancel" type="button" class="submit" value="  返回列表  "
				onclick="history.back();" />
		</div>
	</div>
</body>
<script>
var contextPath='${contextPath}';
$(function(){
	$("#worth").val(${res.worth});
	var d = "${res.region}";
	$.post("${contextPath}/index/consultant_reserve_uses.json", {
				"center":d
			}, function(ms) {
		var use1List = ms.list;
		var use = $("#testusers").attr('name');
		var uhtml = "";
		uhtml +=  '<select name="testusers" id="testusers" >'
		uhtml +=  '<option value="">-- 请选择目标 --</option>'
		for(var i=0;i<use1List.length;i++){
			if(use == use1List[i].username){
			uhtml +='<option value="'+use1List[i].username+'" selected>'+use1List[i].nickname+'（'+use1List[i].region+'）</option>';
			}else{
			uhtml +='<option value="'+use1List[i].username+'">'+use1List[i].nickname+'（'+use1List[i].region+'）</option>';
			}
		}
		$("#student_test_list").find("[rel='testuser']").html(uhtml);
	});
});

</script>
</html>

